{% extends 'parent_module.html' %}

{% block nav %}
  <li class="nav-item">
    <a class="nav-link" href="/ielts">雅思</a>
  </li>

  <li class="nav-item active">
    <a class="nav-link" href="/TOEFL">TOEFL</a>
  </li>
  <li class="nav-item">
    <a class="nav-link" href="/master">考研英语</a>
  </li>
  <li class="nav-item">
    <a class="nav-link" href="/TEM">TEM4/TEM8</a>
  </li>
  <li class="nav-item">
    <a class="nav-link" href="/CET">CET4/CET6</a>
  </li>
  <li class="nav-item">
    <a class="nav-link" href="/BEC">BEC</a>
  </li>
{% endblock %}



{% block content %}
  {% for blog in blogs %}
    <div class="post post-list clearfix">
      <div class="thumb rounded">

        <a href="/{{ blog.article_id }}">
          <div class="inner">
            {% if blog.avatar %}
              <img
                src="/media/{{ blog.avatar }}"
                alt="post-title"
              />
            {% else %}

            {% endif %}
          </div>
        </a>
      </div>
      {% if blog.avatar %}
        <div class="details">
          <h5 class="post-title">
            <a href="/{{ blog.article_id }}"
            >{{ blog.title }}</a
            >
          </h5>
          <p class="excerpt mb-0">
            {{ blog.brief_content }}
          </p>
        </div>
      {% else %}
        <div class="details" style="margin-left: 0;">
          <h5 class="post-title">
            <a href="/{{ blog.article_id }}"
            >{{ blog.title }}</a
            >
          </h5>
          <p class="excerpt mb-0">
            {{ blog.brief_content }}
          </p>
        </div>
      {% endif %}
    </div>
  {% endfor %}
{% endblock %}